import request from '../utils/request'

/**
 * 获取轮播图
 * @returns
 */
export const getSwiper = () => {
  return request({
    method: 'GET',
    url: '/home/swiper',
  })
}

/**
 * 获取租房小组
 * @returns area  地区id
 */
export const getGroups = (params) => {
  return request({
    method: 'GET',
    url: '/home/groups',
    params,
  })
}

/**
 * 获取资讯
 * @param {*} params  area  地区id
 * @returns
 */
export const getNews = (params) => {
  return request({
    url: '/home/news',
    params,
  })
}
